package org.grow.leave.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.grow.leave.entity.Permission;
import org.grow.leave.entity.RoleNotice;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    List<RoleNotice> findRolesByRequest(@Param("url") String shortUrl, @Param("method") String method);
}